<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>{:$page_info['title']}</title>
<link rel="icon" href="favicon.ico" type="__STATIC__/admin/image/ico">

<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<!--标签插件-->
<link rel="stylesheet" href="__STATIC__/admin/js/jquery-tags-input/jquery.tagsinput.min.css">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">

<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<link href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="__STATIC__/common/jquery-tagsinput/jquery.tagsinput.min.css" rel="stylesheet">

<link href="__STATIC__/admin/css/cch.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    <form action="" method="post" enctype="multipart/form-data">
    <div class="col-lg-12">
      <div class="card">
        <div class="card-header">
          <h5>导入域名</h5>
        </div>
        <div class="card-body">
            <div class="mb-3 col-md-12">
              <label for="file" class="form-label">上传文件</label>
              <input type="file" id="file" name="file" class="form-control"  />
              <small class="help-block">下载模板：<code><a href="__STATIC__/template/domain.xlsx">domain.xlsx</a></code></small>
            </div>

            <?php $field = 'problem_bank_id'; $vo = ['name'=>'题库','type'=>'select1','valids'=>['required'],'params'=>$banks]; ?>
            <div class="mb-3 col-md-12">
              {include file="html/fields/select1" /}
            </div>

            

            <div class="form-group col-md-12">
              <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
              <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </div>
      </div>
    </div>

  

    </form>
    
  </div>

  <div class="row">
    <form action="" method="post" enctype="multipart/form-data">
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">

          <table class="table table-bordered">
              <thead>
                <tr>
                  <th>域名</th>
                  <th>状态</th>
                  <th>备注</th>
                </tr>
              </thead>
              <tbody>
                <?php if (empty($results)): ?>
                  <tr><td colspan="100" class="text-center">暂无数据</td></tr>
                <?php else: ?>
                  <?php foreach ($results as $k => $vo): ?>
                    <tr>
                      <td>{:$vo['domainName']}</td>
                      <?php if ($vo['data']['status'] == 1): ?>
                        <td><span style="color: green;">成功</span></td>
                        <td></td>
                      <?php else: ?>
                        <td><span style="color: red;">失败</span></td>
                        <td>{:json_encode($vo['data']['data'],JSON_UNESCAPED_UNICODE)}</td>
                      <?php endif ?>
                      
                    </tr>
                  <?php endforeach ?>
                <?php endif ?>
              </tbody>
            </table>
            
        </div>
      </div>
    </div>

  

    </form>
    
  </div>
  
</div>


<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<!--标签插件-->
<script src="__STATIC__/admin/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>

<!-- 时间选择器 -->
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>

<script src="__STATIC__/common/select2/select2.min.js"></script><!-- 下拉搜索 -->

<script type="text/javascript" src="__STATIC__/common/jquery-tagsinput/jquery.tagsinput.min.js"></script><!-- 标签 -->

<script type="text/javascript" src="__STATIC__/admin/js/lyear-loading.js"></script><!-- loading -->

<!--省市选择-->
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.data.js"></script>
<script type="text/javascript" src="__STATIC__/common/distpicker/distpicker.js"></script>

<script type="text/javascript" src="__STATIC__/admin/js/cch.js"></script>


</body>
</html>